@layout("/common/_container.html"){
<link href="${ctxPath}/static/css/plugins/summernote/summernote.css" rel="stylesheet">
<link href="${ctxPath}/static/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
<link href="${ctxPath}/static/css/plugins/steps/jquery.steps.css" rel="stylesheet">
<link href="${ctxPath}/static/css/wz/img_up.css" rel="stylesheet">
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <input type="hidden" id="id" value="">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox-content">
                        <form id="form" action="${ctxPath}/wzAdv/add" class="wizard-big" enctype="multipart/form-data"
                              method="post">
                            <h1>基本资料</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-6">
                                            <label>类型</label>
                                            <select id="subtype" name="subtype" class="form-control required">
                                                <option value="1">广告</option>
                                                <option value="2">新闻</option>
                                            </select>
                                    </div>
                                    <div class="col-sm-6">
                                        <label>广告类型</label>
                                        <select id="type" name="type" class="form-control required">
                                            <option value="1">非即时广告</option>
                                            <option value="2">即时广告</option>
                                        </select>
                                    </div>
                                    <div class="col-sm-6">
                                        <label>广告标题 *</label>
                                        <input id="title" name="title" type="text" class="form-control required"
                                               maxlength="15">
                                    </div>
                                </div>
                                <div>
                                    <#table id="WzUserTable"/>
                                </div>
                            </fieldset>

                            <h1>封面图片</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-3">
                                        <#NameCon id="condition_pic" name="名称" placeholder="名称"/>
                                    </div>
                                    <div class="col-sm-3">
                                        <#button name="搜索" icon="fa-search" clickFun="PfFile.search()"/>
                                    </div>
                                </div>
                                <div>
                                    <#table id="WzPicFileTable"/>
                                </div>
                            </fieldset>

                            <h1>广告详情</h1>
                            <fieldset>
                                <label>添加广告详情(请至广告编辑器编辑,并在上部标签页中返回)</label>
                                <textarea id='details' style="width: 100%;height: 90%"></textarea>
                            </fieldset>

                            <!--<h1>具体细节</h1>-->
                            <!--<fieldset>-->
                                <!--<div class="row">-->
                                    <!--<div class="col-sm-8">-->
                                        <!--<div class="form-group">-->
                                            <!--<label>筛选最小年龄</label>-->
                                            <!--<input id="screenMinAge" name="screenMinAge" class="form-control"/>-->
                                        <!--</div>-->
                                        <!--<div class="form-group">-->
                                            <!--<label>筛选最大年龄</label>-->
                                            <!--<input id="screenMaxAge" name="screenMaxAge" class="form-control"/>-->
                                        <!--</div>-->
                                        <!--<div class="form-group">-->
                                            <!--<label>筛选所在城市</label>-->
                                            <!--<input id="screenCity" name="screenCity" class="form-control"/>-->
                                        <!--</div>-->
                                        <!--<div class="form-group">-->
                                            <!--<label>筛选范围</label>-->
                                            <!--<input id="screenRange" name="screenRange" class="form-control"/>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</fieldset>-->

                            <h1>优惠券</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-3">
                                        <#NameCon id="condition_coupon" name="名称" placeholder="标题"/>
                                    </div>
                                    <div class="col-sm-3">
                                        <#button name="搜索" icon="fa-search" clickFun="WzCoupon.search()"/>
                                    </div>
                                </div>
                                <div>
                                    <#table id="WzCouponTable"/>
                                </div>
                            </fieldset>

                            <h1>商家问卷</h1>
                            <fieldset>
                                <div>
                                    <#table id="WzQuestionnaireTable"/>
                                </div>
                            </fieldset>
                            <h1>广告提问</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-3">
                                        <#NameCon id="condition_question" name="名称" placeholder="问题"/>
                                    </div>
                                    <div class="col-sm-3">
                                        <#button name="搜索" icon="fa-search" clickFun="WzQuestion.search()"/>
                                    </div>
                                </div>
                                <div>
                                    <#table id="WzQuestionTable"/>
                                </div>
                            </fieldset>
                            <h1>商家信息</h1>
                            <fieldset>
                                <div>
                                    <#table id="WzUserInfoTable"/>
                                </div>
                            </fieldset>
                            <h1>发布规则</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>筛选所在城市</label>
                                            <!--<input id="" name="" class="form-control" value="金坛市" disabled/>-->
                                            <select id="screenCity" name="screenCity" class="form-control">
                                                <option value="320482">金坛市</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>筛选性别</label>
                                            <select id="screenGender" name="" class="form-control">
                                                <option value="0">全部</option>
                                                <option value="1">男</option>
                                                <option value="2">女</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>开始时间 *</label>
                                            <input id="beginTime" name="beginTime" class="form-control required" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>结束时间 *</label>
                                            <input id="endTime" name="endTime" class="form-control required" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>推送人数</label>
                                            <input id="pushNumber" name="pushNumber" class="form-control required"/>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>广告费用</label>
                                            <input id="expense" name="expense" class="form-control required"/>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>赏金总额</label>
                                            <input id="totalReward" name="totalReward" class="form-control required"/>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>赏金发放类型</label>
                                            <select id="rewardType" name="" class="form-control required">
                                            <option value="1">平均</option>
                                            <option value="2">随机</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>赏金平均值</label>
                                            <input id="rewardAverage" name="rewardAverage" type="text"
                                            class="form-control">
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>赏金波动范围</label>
                                            <input id="rewardRange" name="rewardRange" type="text"
                                            class="form-control">
                                        </div>
                                    </div>
                                </div>
                        </fieldset>
                        <!--<h1>调查问卷规则</h1>
                        <fieldset>
                            <div>
                                <#table id="WzUserInfoTable"/>
                            </div>
                        </fieldset>-->
                    </form>
                </div>
            </div>
        </div>

    </div>
</div>

</div>
<!-- SUMMERNOTE -->
<script src="${ctxPath}/static/js/plugins/summernote/summernote.min.js"></script>
<script src="${ctxPath}/static/js/plugins/summernote/summernote-zh-CN.js"></script>
<script src="${ctxPath}/static/js/wz/img_up.js"></script>
<script src="${ctxPath}/static/js/plugins/suggest/bootstrap-suggest.min.js"></script>
<script src="${ctxPath}/static/modular/wz/wzAdv/wzAdv_info.js"></script>
<script src="${ctxPath}/static/modular/wz/wzAdv/wzAdv_add.js"></script>
<!-- Steps -->
<script src="${ctxPath}/static/js/plugins/staps/jquery.steps.min.js"></script>
<!-- Jquery Validate -->
<script src="${ctxPath}/static/js/plugins/validate/jquery.validate.min.js"></script>
<script src="${ctxPath}/static/js/plugins/validate/messages_zh.min.js"></script>
<script src="${ctxPath}/static/modular/wz/wzAdv/wzAdv_search.js"></script>
@}
